import request from '@/utils/request'

// 查询黑名单配置列表
export function listBlackConfig(query) {
  return request({
    url: '/system/blackConfig/list',
    method: 'get',
    params: query
  })
}

// 查询黑名单配置详细
export function getBlackConfig(id) {
  return request({
    url: '/system/blackConfig/' + id,
    method: 'get'
  })
}

// 新增黑名单配置
export function addBlackConfig(data) {
  return request({
    url: '/system/blackConfig',
    method: 'post',
    data: data
  })
}

// 修改黑名单配置
export function updateBlackConfig(data) {
  return request({
    url: '/system/blackConfig',
    method: 'put',
    data: data
  })
}

// 删除黑名单配置
export function delBlackConfig(id) {
  return request({
    url: '/system/blackConfig/' + id,
    method: 'delete'
  })
}
